package com.yuba.front.domain.bo;

import com.yuba.front.domain.FishSiteComments;
import com.yuba.common.mybatis.core.domain.BaseEntity;
import com.yuba.common.core.validate.AddGroup;
import com.yuba.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 钓场评论业务对象 fish_site_comments
 *
 * @author modakai
 * @date 2024-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FishSiteComments.class, reverseConvertGenerate = false)
public class FishSiteCommentsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long commentsId;

    /**
     * 关联钓场id
     */
    @NotNull(message = "关联钓场id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer fishSiteId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String comment;

    /**
     * 评分
     */
    @NotNull(message = "评分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long rating;


}
